package com.ruoyi.insurance.domain;

import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 网络安全事故对象 web_safe_trouble
 * 
 * @author ruoyi
 * @date 2024-08-16
 */
public class WebSafeTrouble extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 事故ID */
    private Integer troubleId;

    /** 保单号 */
    @Excel(name = "保单号")
    private String contractNumber;

    /** 发生事故机构 */
    @Excel(name = "发生事故机构")
    private String troubleInstitution;

    /** 事故简述 */
    @Excel(name = "事故简述")
    private String troubleResume;

    /** 事故日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "事故日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date troubleDate;

    /** 事故状态 */
    @Excel(name = "事故状态")
    private Integer troubleState;

    /** 事故影响 */
    @Excel(name = "事故影响")
    private String troubleImapct;

    /** 直接损失 */
    @Excel(name = "直接损失")
    private Integer lossMoney;

    /** 应急措施信息 */
    private List<Emergency> emergencyList;

    public void setTroubleId(Integer troubleId) 
    {
        this.troubleId = troubleId;
    }

    public Integer getTroubleId() 
    {
        return troubleId;
    }
    public void setContractNumber(String contractNumber) 
    {
        this.contractNumber = contractNumber;
    }

    public String getContractNumber() 
    {
        return contractNumber;
    }
    public void setTroubleInstitution(String troubleInstitution) 
    {
        this.troubleInstitution = troubleInstitution;
    }

    public String getTroubleInstitution() 
    {
        return troubleInstitution;
    }
    public void setTroubleResume(String troubleResume) 
    {
        this.troubleResume = troubleResume;
    }

    public String getTroubleResume() 
    {
        return troubleResume;
    }
    public void setTroubleDate(Date troubleDate) 
    {
        this.troubleDate = troubleDate;
    }

    public Date getTroubleDate() 
    {
        return troubleDate;
    }
    public void setTroubleState(Integer troubleState) 
    {
        this.troubleState = troubleState;
    }

    public Integer getTroubleState() 
    {
        return troubleState;
    }
    public void setTroubleImapct(String troubleImapct) 
    {
        this.troubleImapct = troubleImapct;
    }

    public String getTroubleImapct() 
    {
        return troubleImapct;
    }
    public void setLossMoney(Integer lossMoney) 
    {
        this.lossMoney = lossMoney;
    }

    public Integer getLossMoney() 
    {
        return lossMoney;
    }

    public List<Emergency> getEmergencyList()
    {
        return emergencyList;
    }

    public void setEmergencyList(List<Emergency> emergencyList)
    {
        this.emergencyList = emergencyList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("troubleId", getTroubleId())
            .append("contractNumber", getContractNumber())
            .append("troubleInstitution", getTroubleInstitution())
            .append("troubleResume", getTroubleResume())
            .append("troubleDate", getTroubleDate())
            .append("troubleState", getTroubleState())
            .append("troubleImapct", getTroubleImapct())
            .append("lossMoney", getLossMoney())
            .append("emergencyList", getEmergencyList())
            .toString();
    }
}
